package com.seeyoui.kensite.bussiness.exam.question.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.seeyoui.kensite.bussiness.exam.questionOption.domain.QuestionOption;

public class QuestionVO implements Serializable {
	private static final long serialVersionUID = 1259964659099985290L;
	
	private String id;
	private String content;
	private String questionTypeId;
	private String answer;
	private String userAnswer;
	private String analysis;
	private List<QuestionOption> optionList = new ArrayList<>();
	
	public static QuestionVO instance(Question question) {
		QuestionVO vo = new QuestionVO();
		vo.setId(question.getId());
		vo.setContent(question.getContent());
		vo.setQuestionTypeId(question.getQuestionTypeId());
		vo.setAnswer(question.getAnswer());
		vo.setAnalysis(question.getAnalysis());
		return vo;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getQuestionTypeId() {
		return questionTypeId;
	}

	public void setQuestionTypeId(String questionTypeId) {
		this.questionTypeId = questionTypeId;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getUserAnswer() {
		return userAnswer;
	}

	public void setUserAnswer(String userAnswer) {
		this.userAnswer = userAnswer;
	}

	public String getAnalysis() {
		return analysis;
	}

	public void setAnalysis(String analysis) {
		this.analysis = analysis;
	}

	public List<QuestionOption> getOptionList() {
		return optionList;
	}

	public void setOptionList(List<QuestionOption> optionList) {
		this.optionList = optionList;
	}
}
